import React, { lazy } from 'react';

const Home = lazy(() => import('../pages/Home'))
const Login = lazy(() => import('../pages/Login'))
const Sign = lazy(() => import('../pages/Sign'))

const routes = [
    {
        from: '/',
        to: '/home'
    }, 
    {
        path: '/home',
        element: <Home/>
    },
    {
        path: '/login',
        element: <Login/>
    },
    {
        path: '/sign',
        element: <Sign/>
    }
]

export default routes
